package com.mt.common.system.controller;

import com.mt.common.core.utils.PrimaryGenerator;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: GeneratorCode
 * @Description:
 * @Author zhanghong
 * @Date 2022/5/13
 */

@RestController
@RequestMapping("/api/generatorCode")
@CrossOrigin(allowCredentials = "true")
public class GeneratorCodeController {
    @GetMapping()
    public String getCode(){
        return PrimaryGenerator.getInstance().make();
    }
}
